package indi.cloud.common.service;

import indi.cloud.common.model.esresult.EsEnterpriseListEntity;
import com.alibaba.fastjson.JSONObject;
import org.springframework.data.elasticsearch.core.SearchHits;

/**
 * @author Yyf
 */
public interface EsSearchService {

    SearchHits<EsEnterpriseListEntity> find(String key, Object value);


    JSONObject paging(Integer currentPage, Integer limit);
}
